home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD004b.dsk
/
REMEMBER.LETTERS.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
2KB
|
48 lines
10 TEXT : HOME :A = 1
20 VTAB 4: HTAB 10: INVERSE : PRINT " "
30 VTAB 5: HTAB 10: PRINT " GUESS LETTERS "
40 VTAB 6: HTAB 10: PRINT " ": NORMAL
50 VTAB 12: PRINT "TRY TO REMEMBER THE SEQUENCE OF LETTERS"
60 PRINT : PRINT "PRINTED ON THE SCREEN"
70 GOSUB 400: HOME
80 L$ = "":GU$ = ""
90 A = A +1
100 VTAB 8: HTAB 5: PRINT "CAN YOU REMEMBER ";A;" LETTERS?"
110 FOR N = 1 TO A
120 L = INT( RND(1) *26) +65
130 N$ = CHR$(L)
140 L$ = L$ +N$
150 NEXT N
160 VTAB 12: HTAB 8: PRINT L$
170 FOR PA = 1 TO 400 *A: NEXT PA
180 HOME : VTAB 3: PRINT "ENTER THE LETTERS IN THE SEQUENCE THAT": PRINT : PRINT "YOU REMEMBER:"
190 PRINT : PRINT
200 FOR N = 1 TO A
210 GET G$: PRINT G$;
220 GU$ = GU$ +G$
230 IF MID$ (L$,N,1) < >G$ THEN GOSUB 500
240 NEXT N
250 VTAB 14: HTAB 10: INVERSE : PRINT " "
260 VTAB 15: HTAB 10: PRINT " G R E A T ! ! "
270 VTAB 16: HTAB 10: PRINT " ": NORMAL
280 GOSUB 400
290 HOME : GOTO 80
400 VTAB 22: PRINT "HIT ANY KEY TO CONTINUE ";: GET A$: PRINT
410 RETURN
500 HOME : VTAB 3: HTAB 10: INVERSE : PRINT " "
510 VTAB 4: HTAB 10: PRINT " YOU DUMMY ! ! ! "
520 VTAB 5: HTAB 10: PRINT " ": NORMAL
525 GOSUB 1000
530 VTAB 10: PRINT "CORRECT LETTERS: ";L$
550 VTAB 12: PRINT " YOU ENTERED: ";GU$
560 VTAB 20: INPUT "DO YOU WANT TO TRY AGAIN? ";A$: PRINT
570 IF A$ = "Y" THEN RUN
580 END
1000 FOR I = 272 TO 293: READ N: POKE I,N: NEXT I
1010 DATA 160,1,162,0,138,24,233,1,208,252,141,48,192,232,224,150,208,242,136,208,237,96
1020 GOSUB 1040: GOSUB 1050: GOSUB 1060
1030 RESTORE : RETURN
1040 POKE 273,12: POKE 287,200: CALL 272: RETURN
1050 POKE 273,5: POKE 287,200: CALL 272: POKE 287,250: CALL 272: POKE 287,250: CALL 272: RETURN
1060 POKE 273,12: POKE 287,250: CALL 272: RETURN
1070 REM SOUND EFFECTS CAN BE CHANGED BY CHANGING "NUMBER OF SHOTS" IN POKE273, AND "LENGTH" IN POKE 287